package com.cupk.common.base.config;

/**
 * @author tjy
 * @date 2023/3/17
 * @apiNote
 */
public class Contant {
    /**
     * 最大失败次数
     */
    public static final int MAX_FAIL_COUNT = 3;

    /**
     * 登录限制时间
     */
    public static final int INTERVAL_TIME = 1800;
    /**
     * 时间常数
     */
    public static final int MULTIPLY_TIME = 1000;

    /**
     * 时区
     */
    public static final String OFF_SET_ID = "+8";

    /**
     * 本机地址
     */
    public static final String LOCAL_IP = "127.0.0.1";

    /**
     * UNKNOWN
     */
    public static final String UNKNOWN = "unknown";

    /**
     * 分隔符
     */
    public static final String IP_SPLIT = ",";

    /**
     * IPV4最大长度
     */
    public static final int IPV4_MAX_LENGTH = 15;

    /**
     * 密码最短
     */
    public static final int PASSWORD_MIN_LEN = 3;

    /**
     * 最长密码长度
     */
    public static final int PASSWORD_MAX_LEN = 16;

    /**
     * 模型位置
     */
    public static final String RANDOM_FOREST_MODEL_PATH = "/Users/tjy/GraduationDesign/rotaryGuard/rotaryGuard-monitor/src/main/resources/model/rf_all.pmml";


    /**
     * 测试集数据存放文件夹
     */
    public static final String PREDICT_TEST_PATH = "/Users/tjy/GraduationDesign/rotaryGuard/rotaryGuard-monitor/src/main/resources/dataset/test/";


    /**
     * 测试集数据存放文件路径
     */
    public static final String TEST_FILE_PATH = "/Users/tjy/GraduationDesign/rotaryGuard/rotaryGuard-monitor/src/main/resources/dataset/test/TEST1.csv";

    /**
     * 测试集数据存放文件路径
     */
    public static final String TEST_TW_FILE_PATH = "/Users/tjy/GraduationDesign/rotaryGuard/rotaryGuard-monitor/src/main/resources/datatw/test/TEST1tw.csv";

    /**
     * 特征文件存放文件路径
     */
    public static final String FEATURE_FILE_PATH = "/Users/tjy/GraduationDesign/rotaryGuard/rotaryGuard-monitor/src/main/resources/feature/test/allfeature_test.csv";

    /**
     * 筛选后特征文件存放文件路径
     */
    public static final String FEATURE_SELECT_FILE_PATH = "/Users/tjy/GraduationDesign/rotaryGuard/rotaryGuard-monitor/src/main/resources/needdiagnosiscsv/feature_all.csv";

    public static final String SUCCESS_FLASK_VALUE = "success";

    /**
     * flask
     */
    public static final String TEST_CSV_TO_TEST_TW = "http://localhost:5000/test-csv-to-testtw";
    public static final String TEST_TW_TO_TEST_GENA = "http://localhost:5000/testtw-to-testgena";
    public static final String ALL_FEATURE_CSV = "http://localhost:5000/get-all-feature";
    public static final String SELECT_ALL_FEATURE = "http://localhost:5000/select-all-feature";

}
